package com.Case.bean;

import java.util.ArrayList;

/**
 * @ClassName Department
 * @Author 16799
 * @Date 2025/7/20 15:34
 * @Version 1.0
 * @Description TODO
 **/
public class Department {
    private String name;
    private ArrayList<Doctor> doctors = new ArrayList<>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<Doctor> getDoctors() {
        return doctors;
    }

    public void setDoctors(ArrayList<Doctor> doctors) {
        this.doctors = doctors;
    }

    public int getNumber(){
        return doctors.size();
    }
}
